package com.zhouchao.code.feign.email;

import com.zhouchao.code.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: zhouchao
 * @Date: 2021/10/16 22:13
 * @Description:
 */
@FeignClient(name = "service-email", fallbackFactory = EmailServiceFeignClientFallbackFactory.class)
public interface EmailServiceFeignClient {

    @GetMapping("api/email/{email}/{code}")
    Result<Boolean> sendEmail(@PathVariable String email, @PathVariable String code);
}
